package com.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "users")
public class Chatter implements Serializable {
    @Id
    @Column(name = "nickname")
    private String name;

    public Chatter() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Chatter{" +
                "Name='" + name +
                '}';
    }
}